package com.aspose.cells.a.d;

import java.util.Iterator;

public class zcy implements Iterable {
   private String a;
   private zfk b;
   private zfk c;
   private int d = 1;

   public zcy(String var1) {
      this.a = var1;
      this.b = new zfk(true);
      this.c = new zfk(false);
   }

   public String a(String var1, String var2, boolean var3) {
      if (var3) {
         if (zgb.b(var2)) {
            var2 = "file:///" + var2;
            var2 = zgb.f(var2);
         }
      } else {
         var2 = zct.a(this.a, var2);
      }

      zcx var4 = (zcx)this.c.d(var2);
      if (var4 != null) {
         return var4.a();
      } else {
         String var5 = com.aspose.cells.b.a.zv.a("rId{0}", this.d);
         ++this.d;
         this.a(var5, var1, var2, var3);
         return var5;
      }
   }

   public void a(String var1, String var2, String var3, boolean var4) {
      zcx var5 = new zcx(var1, var2, var3, var4);
      this.b.b(var1, var5);
      this.c.b(var3, var5);
   }

   public Iterator iterator() {
      return this.b.e().iterator();
   }

   public int a() {
      return this.b.b();
   }
}
